<?
include('sessao.php');
$pers = $manager->readObj($conta->getActualPers(), 'actores');
$pers->actualizar();
$areaActual = $manager->readObj($pers->getValue('area_nome'), 'areas');
$pers->actualizar();

$com = '';
if (isset($_GET['com']) && $_GET['com']!='') $com = $_GET['com'];
if (isset($_POST['com']) && $_POST['com']!='') $com = $_POST['com'];
if ($com != '') include('interpretador.php');
$_SESSION['conta'] = $conta;

$manager->writeObj($pers, 'nome', 'actores');
$pers->actualizar();

if ($pers->getValue('hp') < -10) {
	$pers->setValue('hp', $pers->getValue('hp_max'));
	$pers->setValue('nonLethalDamage', 0);
	include('dead_screen.php');
	$manager->writeObj($pers, 'nome', 'actores');
} else {
	include('selectHtml.php');
}
?>